package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 学生作业对象 s_homework
 *
 * @author ruoyi
 * @date 2024-12-03
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class SHomework extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 学生ID
     */
    @Excel(name = "学生ID")
    private Long sId;

    /**
     * 作业ID
     */
    @Excel(name = "作业ID")
    private Long hId;

    /**
     * 是否交作业
     */
    @Excel(name = "是否交作业")
    private Long isSubmit;

    /**
     * 交作业时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交作业时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /**
     * 得分
     */
    @Excel(name = "得分")
    private Long score;

    /**
     * 总分
     */
    @Excel(name = "总分")
    private Long allScore;

    /**
     * 及格分
     */
    @Excel(name = "及格分")
    private Long pass;

    /**
     * 是否及格
     */
    @Excel(name = "是否及格")
    private Long isPass;

    /**
     * 是否批改
     */
    @Excel(name = "是否批改")
    private Long isMark;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deleteStatus;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

    public Long gethId() {
        return hId;
    }

    public void sethId(Long hId) {
        this.hId = hId;
    }
}
